if "$thisframe" != "grade_3_no_exp0"{	
	quiet: reghdfe read_std  $experiencevar $nothreatvars $probvars $feedbackvars $sdemovars $prevvars $gradevar i.year $yeardosevar if subject=="ELA", absorb(id sch_id) vce(cluster id#year)
	gen insample_read = e(sample)
	quiet: reghdfe math_std  $experiencevar $nothreatvars $probvars $feedbackvars $sdemovars $prevvars $gradevar i.year $yeardosevar if subject=="Math", absorb(id sch_id) vce(cluster id#year)
	gen insample_math = e(sample)
	gen insample = insample_math | insample_read

}
else {
    quiet: reghdfe read_std  $experiencevar $nothreatvars $probvars $feedbackvars $sdemovars $prevvars i.year $yeardosevar if subject=="ELA", absorb(id sch_id) vce(cluster id#year)
	gen insample_read = e(sample)
	quiet: reghdfe math_std  $experiencevar $nothreatvars $probvars $feedbackvars $sdemovars $prevvars i.year $yeardosevar if subject=="Math", absorb(id sch_id) vce(cluster id#year)
	gen insample_math = e(sample)
	gen insample = insample_math | insample_read
}